tooltip: Minor cleanup
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Mar 2015 15:47:23 +0000 (11:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Mar 2015 15:47:23 +0000 (11:47 -0400)
Preserve the symmetry in gtk_tooltip_set_last_window.

gtk/gtktooltip.c

index fa4c8b68cde74e04acd76a8fea0eaa4b479cc532..fd2ba1413b5ffb3ad73896e53a0f4154bfa3d647 100644 (file)
@@ -904,7 +904,7 @@ gtk_tooltip_set_last_window (GtkTooltip *tooltip,
 
   tooltip->last_window = window;
 
-  if (window)
+  if (tooltip->last_window)
     g_object_add_weak_pointer (G_OBJECT (tooltip->last_window),
                               (gpointer *) &tooltip->last_window);